package ru.study.thinkin.chapter7;

class Insect {
	private int i=9;
	protected int j;
	private int s = printInit("Поле super.s инициализировано");
	private static int x1 = printInit("Поле static Insect x1 инициализировано");
		
	Insect() {
		System.out.println("Insect() [i=" + i + ", j=" + j + "]");
		j=39;
	}	
	
	static int printInit(String s) {
		System.out.println(s);
		
		return 47;
	}
}
public class Beetle extends Insect{
	private int k = printInit("Поле Beetle k инициализировано");
	private static int x2 = printInit("Поле static Beetle x2 инициализировано");
	
	Beetle() {
		System.out.println("Конструктор Betle");	
	}	
	public static void main(String[] args) {		
		System.out.println("start Beetle");
		Beetle b = new Beetle();
	}

}
